#include <stdio.h>
#include <unistd.h>
#include <sys/types.h>
int main(void)
{ 
uid_t me, mine;
me=(long)getuid();
mine=(long)geteuid();
printf("UID is : %ld \t EUID is : %ld \n",me,mine);
printf("GID is : %ld\t  EGID is : %ld\n",(long)getgid(),(long)getegid());
return 0;
}
